package com.fc.happyteam.entity;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by futurecreative on 2017/7/25.
 */
public class SysDictItemEntity {
    private Integer id;

    @NotBlank(message="code不能为空")
    private String code;

    @NotBlank(message="name不能为空")
    private String name;

    @NotNull(message="groupId不能为空")
    private Integer groupId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
}
